package com.example.graalvm21.utils.common;

import com.example.graalvm21.model.constants.CommonConstants;

import java.util.UUID;

/**
 * <p>工具类-编号</p>
 *
 * @author wz
 *
 * @date 2025/10/27 9:45
 *
 * @version 1.0
 */
public class UuidUtils {

    public static String getUuid() {
        return getUuid36Bits().replaceAll(CommonConstants.STR_STRIGULA, "");
    }

    public static String getUuid36Bits() {
        return UUID.randomUUID().toString();
    }

    public static String getUuid12Bits() {
        return getUuid().substring(20);
    }
}
